import time
from random import randint
import HWCommModule

data = {}

for i in range(1, 60):
	str = ''
	for j in range(i):
		str+='b'
	data[str] = i
	
# print data
	
res = HWCommModule.send(data)

# print res

t1 = time.time()
for i in range(100):
	rand = randint(0,1)
	if rand == 0:
		res = HWCommModule.send(data)
	else:
		res = HWCommModule.get()
t2 = time.time()
print 100 / (t2-t1), ' calls/second'

# print HWCommModule.get()